<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
   xmlns:h="http://xmlns.jcp.org/jsf/html"
   xmlns:p="http://primefaces.org/ui"   
   xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
   template="/WEB-INF/templates/business/buyer/template.xhtml">
   
   	<f:metadata>	   	
	   	<f:viewParam name="firstResult" value="#{bulletinContractList.firstResult}"></f:viewParam>	
	   	<f:viewParam name="projectName" value="#{bulletinContractList.parameterValues['projectName']}"></f:viewParam>
   		
   	</f:metadata>
   
   	<ui:define name="buyer_content">   		
		<h:form id="searchForm"> 
			<div class="iethbox_tit">
				<h2>备案登记</h2>
				<ui:remove>
					<span>
						<p:link outcome="/index.xhtml" value="平台首页"></p:link>					
						&gt;备案登记
					</span>
				</ui:remove>
			</div>
			
			<div class="iethbox_area">				
				<p:outputLabel value="项目名称"></p:outputLabel>				
				<p:inputText value="#{bulletinContractList.parameterValues['projectName']}"></p:inputText>
				
				<div class="actionButtons">
					<p:commandButton value="查询" ajax="false"  action="BulletinContractList.xhtml?faces-redirect=true&amp;includeViewParams=true&amp;firstResult=0" styleClass="blue-int"></p:commandButton>
					<p:button value="重置" outcome="BulletinContractList.xhtml"></p:button>
				</div>				
				
				<div class="clearbt"></div>
			</div>
			
			<div class="iethbox_table">
				<p:dataTable value="#{bulletinContractList.resultList}" var="_contracrRecord">
					
					<p:column sortBy="#{_contracrRecord.projectName}">
						<f:facet name="header">采购项目名称</f:facet>
						#{_contracrRecord.projectName}
					</p:column>
					
					<p:column width="60">
						<f:facet name="header">采购单位名称</f:facet>
						#{_contracrRecord.buyerName}
					</p:column>
					
					<p:column width="100">
						<f:facet name="header">中选中介名称</f:facet>
						#{_contracrRecord.supplierName}
					</p:column>
					<p:column width="100">
						<f:facet name="header">合同完成时限</f:facet>
						#{_contracrRecord.limitOfTime}
					</p:column>
					<p:column width="100">
						<f:facet name="header">投资金额</f:facet>
						#{_contracrRecord.amountOfInvestment}
					</p:column>
					<p:column width="100">
						<f:facet name="header">项目概述</f:facet>
						#{_contracrRecord.projectOverview}
					</p:column>
								
					<p:column style="text-align: center" width="60">
						<f:facet name="header">操作</f:facet>
						<p:button value="修改" outcome="BulletinContractEdit.xhtml" rendered="#{_contracrRecord.updateable()}">
							<f:param name="contractRecordId" value="#{_contracrRecord.id}"></f:param>
							<f:param name="bulletinId" value="#{_contracrRecord.bulletin.id}"></f:param>
						</p:button>
						<p:button value="查看" outcome="BulletinContractView.xhtml">
							<f:param name="contractRecordId" value="#{_contracrRecord.id}"></f:param>
						</p:button>
					</p:column>
				</p:dataTable>
			</div>
			
			<ui:include src="/WEB-INF/templates/manage/pagination.xhtml">
				<ui:param name="entityList" value="#{bulletinContractList}" />
			</ui:include>
		</h:form>
   	</ui:define>
</ui:composition>
